package com.zhuliwei.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuliwei.domain.ResponseResult;
import com.zhuliwei.domain.entity.Sentence;

import java.util.List;

/**
 * 句子接口
 *
 * @author 朱力维
 * @time 2023/5/25 16:08
 **/
public interface SentenceService extends IService<Sentence> {
    /**
     * 随机获取一个句子
     *
     * @return Sentence
     */
    ResponseResult<Sentence> getRandomContent();

    /**
     * 返回句子列表
     *
     * @return
     */
    ResponseResult<Sentence> getSentences(Integer pageNum, Integer pageSize, Sentence sentence);

    ResponseResult addSentence(Sentence sentence);

    ResponseResult delSentence(List<String> ids);

    ResponseResult updateSentence(Sentence sentence);

}
